import axios from 'axios'

export function fetch (url, params) {
  return axios({
    url,
    ...params
  })
    .then(res => res.data)
    .catch(err => console.log('error', err))
}
